package com.yaolisheng;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author : yaols
 * Desc:
 * Date: 2022.12.17.10:21
 **/
@Getter
@AllArgsConstructor
public enum DistCodeEnum {
  GJSWZJ("00000000000","国家税务总局"),
  XMSSWJ("13502000000","厦门市税务局"),
  NMGZZQSWJ("11500000000","内蒙古自治区税务局"),
  SCSSWJ("15100000000","四川省税务局"),
  SHSSWJ("13100000000","上海市税务局"),
  GDSSWJ("14400000000","广东省税务局");

  private String code;
  private String name;

  public static final Map<String,String> map = new HashMap<>();

  //通过code获取对应的name
  public static String getDistName(String code){
    return map.get(code);
  }

  static{
    for(DistCodeEnum distCodeEnum : DistCodeEnum.values()){
      map.put(distCodeEnum.getCode(), distCodeEnum.getName());
    }
  }
}
